package net.zjitc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.zjitc.exception.CategoryException;
import net.zjitc.entity.Category;

import java.util.List;

public interface CategoryService {
    public List<Category> getListCategory(Integer type) throws CategoryException;
    public Page<Category> getPageCateGory(Integer type, Integer pagenum, Integer pagesize) throws CategoryException;

    Category addLevel(Category category);

    Category findById(Integer cat_id);


    Integer deleteById(Integer cat_id);

    Category updateById(Category category);
}
